package com.zhanghe.study.spring4.beans.annotationtest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author zh
 * @date 2021/1/5 10:30
 */
@Service
public class UserService {

    @Qualifier("userRepositoryImpl")
    @Autowired
    private UserRepository userRepository;

    public void save(){
        System.out.println("userService执行save()");
        System.out.println(userRepository);
    }
}
